<template>
	<view>
		<web-view :webview-styles="webviewStyles" :src="url"></web-view>
	</view>
</template>

<script>
export default {
    components: {},
		data() {
			return {
				url: '',
				webviewStyles: {
					// 设置跳转加载进度颜色
					progress: {
						color: '#55ffff'
					}
				}
			}
		},
		onLoad() {
			this.setURL()
		},
		methods: {
			setURL(){
				const Openid = uni.getStorageSync('idCard');
				const id = uni.getStorageSync('id');
				const idToken = uni.getStorageSync('idToken');
				const url = `http://120.78.172.10/h5/?id=${id}&pid=${Openid}&accessToken=${idToken}`;
				this.url = url;
			}
			// setTimeout(()=>{
			// uni.setNavigationBarTitle({
			// title:‘app中要设置的标题’
			// })
			// },2000)
		}
	}
</script>

<style>
</style>
